#if !defined(LOGGINGR_H__INCLUDED_)
#define LOGGING_H__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Logging.h : header file
//
#include <iostream>
#include <fstream>
using namespace std;

enum log_type{log_info  = 0, log_error, log_warn,  log_fatal,  log_debug};
/////////////////////////////////////////////////////////////////////////////
// CLogging

class CLogging
{
// Construction
public:
	CLogging();
	~CLogging();
	void CloseLogging();
	ofstream* InitLogging(char *ProgramDirectory, char *logname);
	void GetDateTime(char *time, int timesize);
	void GetOSType(ofstream *output);
	CString ReadOperatingSystemStringFromRegistry(char *key);
	DWORD RegMultiRead(HKEY hHive, LPTSTR szKey, LPTSTR szValue, LPTSTR szResult, size_t iResultSize);
private:

public:	//variables
	ofstream *out;
	CLogging *log;

struct SPathSplit
	{
		char oldname[MAX_PATH];					
		char drive[_MAX_DRIVE];				
		char dir[_MAX_DIR];						
		char fname[_MAX_FNAME];					
		char ext[_MAX_EXT];
	};

};

#endif // !defined(LOGGING_H__INCLUDED_)
